﻿<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="TweetCraftMinimapButton.lua" />

  <Button name="TweetCraftMinimapButton" hidden="false" enableMouse="true" movable="true" parent="MinimapBackdrop">
    <Size>
      <AbsDimension x="32" y="32"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER">
        <Offset>
          <AbsDimension x="-80" y="0"/>
        </Offset>
      </Anchor>
    </Anchors>
    <Scripts>
      <OnLoad>
        self:RegisterForDrag("LeftButton")
      </OnLoad>
      <OnDragStart>
        TweetCraft.MinimapButton_DragStart(self)
      </OnDragStart>
      <OnDragStop>
        TweetCraft.MinimapButton_DragEnd(self)
      </OnDragStop>
      <OnMouseDown>
        TweetCraft.MinimapButton_MouseDown(self)
      </OnMouseDown>
      <OnMouseUp>
        PlaySound("igMainMenuOptionCheckBoxOn")
        TweetCraft.MinimapButton_MouseUp(self)
      </OnMouseUp>
      <OnEnter>
        TweetCraft.AddNewbieTip(self, TWEETCRAFT_LOCAL_STRINGS.TWEETCRAFT, 1, 1, 1, TWEETCRAFT_LOCAL_STRINGS.TWEETCRAFTTOOLTIP, 1)
      </OnEnter>
      <OnLeave>
        GameTooltip:Hide()
      </OnLeave>
    </Scripts>
    <NormalTexture file="Interface\AddOns\TweetCraft\Textures\UI-TweetCraft-MinimapButton-Up.tga"/>
    <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
  </Button>  
</Ui>